﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MainFrame
{
    public partial class FormHomeTips : Form
    {
        public FormHomeTips()
        {
            InitializeComponent();
       //     lbl_tips.Text = GlobalVar.tips_frmRun;
        }
        public void tips(string tip)
        {
            if (InvokeRequired)
            {
                this.Invoke(new Action(() =>
                {
                    lbl_tips.Text = tip;
                    lbl_tips.Refresh();
                }));

            }
            else
            {
                lbl_tips.Text = tip;
                lbl_tips.Refresh();
            }
        }

        private void FormHomeTips_Load(object sender, EventArgs e)
        {
            GlobalVar.homeTips = tips;
        }
    }
}
